//-----Macro for visulization of ALL experiment geometry-------------

void draw_geo(TString rootfile="geofile_full.root" )
{
   TEveManager::Create();
   gGeoManager = gEve->GetGeometry(rootfile);
   gGeoManager->DefaultColors();
   TEveGeoTopNode* topnode = new TEveGeoTopNode(gGeoManager, gGeoManager->GetTopNode());
   topnode->SetVisLevel(4);
   gEve->AddGlobalElement(topnode);
   gEve->FullRedraw3D(kTRUE);
  // GLviewer setting you can choose different setting
   // 0 - no clip, 1 - clip plane, 2 - clip box
   TGLViewer *viewer = gEve->GetDefaultGLViewer();
   viewer->ColorSet().Background().SetColor(kBlack);
   viewer->GetClipSet()->SetClipType(TGLClip::kClipNone); // Other options are kClipNone = 0, kClipPlane, kClipBox    
   viewer->ColorSet().Background().SetColor(kBlack);
   viewer->SetGuideState(TGLUtil::kAxesOrigin, kTRUE, kFALSE, 0); // EAxesType { kAxesNone, kAxesEdge, kAxesOrigin }
   viewer->UseDarkColorSet(); 
   viewer->RefreshPadEditor(viewer);	
   viewer->CurrentCamera().RotateRad(-0.5, 0.5);
   viewer->DoDraw();
   Double_t center[3] ={0.,0.,0.};
   Double_t *cent; cent = center;
   viewer->SetOrthoCamera(TGLViewer::kCameraOrthoZOX,1.0, 1.0, cent,1.0,0.); // kCameraPerspXOZ, kCameraPerspYOZ, kCameraPerspXOY, kCameraOrthoXOY,
   //kCameraOrthoXOZ, kCameraOrthoZOY, kCameraOrthoXnOY, kCameraOrthoXnOZ,kCameraOrthoZnOY
  // v->CurrentCamera().RotateRad(-.7, 0.5);	
//   viewer->CurrentCamera().RotateRad(-1.2, 0.5);
   viewer->DoDraw();
  // viewer->SavePicture(Form("%s.gif",geoname.Data()));
  // viewer->SavePicture(Form("%s.png",geoname.Data()));
  // viewer->SavePicture(Form("%s.eps",geoname.Data()));
}
